module.exports={
    entry:'./entry.js',
    output:{
        filename:'./bundle.js',
    },
    module:{
        loaders:[
            {
                test:/\.css$/,
                loader:'style-loader!css-loader'
            },
            {
                test:/\.scss$/,
                loader:'style-loader!css-loader!sass-loader'
            },
            {
                test: /\.(png|jpg|jpeg|gif|woff)$/,
                loader: 'url-loader?limit=4192&name=img/[name].[ext]',

            },
            {
               test: /\.js$/,
               exclude: /node_modules/,
               loader: 'babel-loader',
               query:{
                   presets:['es2015']
               }
           }
        ]
    }
}
